package com.gmail.liulijuan.Busyness;

import java.util.ArrayList;

import com.gmail.liulijuan.DB.Custom;
import com.gmail.liulijuan.DB.CustomDao;
import com.gmail.liulijuan.DB.EmployeeDao;


public class CustomList {
	public String[][] initCustomList(){
		ArrayList al;
		CustomDao cd=new CustomDao();
		al=cd.addAllCustom();
		String[][] custom=new String[al.size()][4];
		
		for (int i = 0; i < al.size(); i++) {
			custom[i][0]=String.valueOf(((Custom)(al.get(i))).getID());
			custom[i][1]=((Custom)(al.get(i))).getCustomName();
			custom[i][2]=((Custom)(al.get(i))).getSex();
			custom[i][2]=((Custom)(al.get(i))).getPhoneNumber();
		}
		return custom;
	}
	public String[] initColumTitle(){
		String[] tt={"ID","Name","Sex","PhoneNumber"};
		return tt;
	}
	
	public ArrayList getAllCustom(){
		CustomDao cd=new CustomDao();
		return cd.addAllCustom();
		
	}

}
